﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;

public partial class Financial_CancelOrder : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        var orderID = Request.QueryString["OrderID"];
        var employeeID = new EmpolyeeBLL().GetEmpolyeeInfoByLoginName(User.Identity.Name).EmpolyeeID;

        if (!string.IsNullOrEmpty(orderID))
        {
            new OrderBLL().CancelOrderByOperator(orderID, employeeID, TextBox1.Text.Trim());

            Response.Redirect("OrdersForTransaction.aspx");
        }

    }
}
